﻿using Authentication.Configuration;
using Authentication.Model.Model;
using Common.Data.Extensions;
using Common.Type;

namespace Authentication.Data.DBConfig
{

    public class ApplicationConfiguration : DBConfig<Application>
    {
        public ApplicationConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => k.ApplicationKey);
            Property(c => c.Name).HasMaxLength(250).IsRequired();
            Property(c => c.Description).HasMaxLength(250);
        }
    }
}

